/*
 * StepTrigger.h
 *
 *  Created on: 12/02/2011
 *      Author: Nenem
 */

#ifndef STEPTRIGGER_H_
#define STEPTRIGGER_H_

#include "Tools.h"
#include "Body.h"
#include "TriggerList.h"
//#include "PositionTrigger.h"

class PositionTrigger;

#include <map>
using namespace std;

class StepTrigger {
	map<int, TriggerList*> mapList;
	map<int, Body*> mapBody;
public:
	bool addMaps(int owner, TriggerList* tl, Body *body);
	void erase(int objID);
	bool testStep(int owner, PositionTrigger *pt, Body *ptBody, Position *ptPos, Direction *ptDir);
	StepTrigger();
	virtual ~StepTrigger();
};

#endif /* STEPTRIGGER_H_ */
